home *** CD-ROM | disk | FTP | other *** search
- Path: imaginet.fr!usenet
- From: yeproy@imaginet.fr (Yann-Erick Proy)
- Newsgroups: comp.sys.amiga.applications
- Subject: Re: $user and MultiUser
- Date: 16 Feb 1996 23:11:33 GMT
- Organization: ImagiNET
- Message-ID: <801.6620T1376T51@imaginet.fr>
- References: <w1gg2cbadyg.fsf@nyi.ifi.uio.no>
- NNTP-Posting-Host: national10.imaginet.fr
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*
-
- Uwe Sigurd Valentin Kubosch wrote:
-
- > Does logout/login not set the 'user' variable? Is there another
- > way of detecting which user is calling a command or script? Is
- > there a way to set this in .login/.profile?
-
- To get the user ID in a script you only need to put <UserInfo QUICK> between
- quotes. For example, my global .profile script does this:
-
- ...
- SetEnv USER `UserInfo QUICK`
- ...
-
- You are warned that only testing such a ENV:USER variable once it has been
- set this way is erroneous, since every subsequent login issued while there
- is at least somebody on the login stack does *NOT* induce the execution of
- .profile scripts.
-
-
- Regards,
-
- Yann
-
- --
- Yann-Erick Proy yeproy@imaginet.fr - Yann-Erick.Proy@Imag.fr
- A2000/PPS040/Picasso/USR28k Quantum730/Maxtor330/Toshiba4x/Cipher150
-
-
-